Package rex.olap.mdxparse

Source Code of rex.olap.mdxparse.Yylex

package rex.olap.mdxparse;
import java_cup.runtime.Symbol;


class Yylex implements java_cup.runtime.Scanner {
  private final int YY_BUFFER_SIZE = 512;
  private final int YY_F = -1;
  private final int YY_NO_STATE = -1;
  private final int YY_NOT_ACCEPT = 0;
  private final int YY_START = 1;
  private final int YY_END = 2;
  private final int YY_NO_ANCHOR = 4;
  private final int YY_BOL = 65536;
  private final int YY_EOF = 65537;
  private java.io.BufferedReader yy_reader;
  private int yy_buffer_index;
  private int yy_buffer_read;
  private int yy_buffer_start;
  private int yy_buffer_end;
  private char yy_buffer[];
  private boolean yy_at_bol;
  private int yy_lexical_state;

  Yylex (java.io.Reader reader) {
    this ();
    if (null == reader) {
      throw (new Error("Error: Bad input stream initializer."));
    }
    yy_reader = new java.io.BufferedReader(reader);
  }

  Yylex (java.io.InputStream instream) {
    this ();
    if (null == instream) {
      throw (new Error("Error: Bad input stream initializer."));
    }
    yy_reader = new java.io.BufferedReader(new java.io.InputStreamReader(instream));
  }

  private Yylex () {
    yy_buffer = new char[YY_BUFFER_SIZE];
    yy_buffer_read = 0;
    yy_buffer_index = 0;
    yy_buffer_start = 0;
    yy_buffer_end = 0;
    yy_at_bol = true;
    yy_lexical_state = YYINITIAL;
  }

  private boolean yy_eof_done = false;
  private final int YYINITIAL = 0;
  private final int AFTER_AS2 = 2;
  private final int AFTER_AS1 = 1;
  private final int yy_state_dtrans[] = {
    0,
    74,
    76
  };
  private void yybegin (int state) {
    yy_lexical_state = state;
  }
  private int yy_advance ()
    throws java.io.IOException {
    int next_read;
    int i;
    int j;

    if (yy_buffer_index < yy_buffer_read) {
      return yy_buffer[yy_buffer_index++];
    }

    if (0 != yy_buffer_start) {
      i = yy_buffer_start;
      j = 0;
      while (i < yy_buffer_read) {
        yy_buffer[j] = yy_buffer[i];
        ++i;
        ++j;
      }
      yy_buffer_end = yy_buffer_end - yy_buffer_start;
      yy_buffer_start = 0;
      yy_buffer_read = j;
      yy_buffer_index = j;
      next_read = yy_reader.read(yy_buffer,
          yy_buffer_read,
          yy_buffer.length - yy_buffer_read);
      if (-1 == next_read) {
        return YY_EOF;
      }
      yy_buffer_read = yy_buffer_read + next_read;
    }

    while (yy_buffer_index >= yy_buffer_read) {
      if (yy_buffer_index >= yy_buffer.length) {
        yy_buffer = yy_double(yy_buffer);
      }
      next_read = yy_reader.read(yy_buffer,
          yy_buffer_read,
          yy_buffer.length - yy_buffer_read);
      if (-1 == next_read) {
        return YY_EOF;
      }
      yy_buffer_read = yy_buffer_read + next_read;
    }
    return yy_buffer[yy_buffer_index++];
  }
  private void yy_move_end () {
    if (yy_buffer_end > yy_buffer_start &&
        '\n' == yy_buffer[yy_buffer_end-1])
      yy_buffer_end--;
    if (yy_buffer_end > yy_buffer_start &&
        '\r' == yy_buffer[yy_buffer_end-1])
      yy_buffer_end--;
  }
  private boolean yy_last_was_cr=false;
  private void yy_mark_start () {
    yy_buffer_start = yy_buffer_index;
  }
  private void yy_mark_end () {
    yy_buffer_end = yy_buffer_index;
  }
  private void yy_to_mark () {
    yy_buffer_index = yy_buffer_end;
    yy_at_bol = (yy_buffer_end > yy_buffer_start) &&
                ('\r' == yy_buffer[yy_buffer_end-1] ||
                 '\n' == yy_buffer[yy_buffer_end-1] ||
                 2028/*LS*/ == yy_buffer[yy_buffer_end-1] ||
                 2029/*PS*/ == yy_buffer[yy_buffer_end-1]);
  }
  private java.lang.String yytext () {
    return (new java.lang.String(yy_buffer,
      yy_buffer_start,
      yy_buffer_end - yy_buffer_start));
  }
  private int yylength () {
    return yy_buffer_end - yy_buffer_start;
  }
  private char[] yy_double (char buf[]) {
    int i;
    char newbuf[];
    newbuf = new char[2*buf.length];
    for (i = 0; i < buf.length; ++i) {
      newbuf[i] = buf[i];
    }
    return newbuf;
  }
  private final int YY_E_INTERNAL = 0;
  private final int YY_E_MATCH = 1;
  private java.lang.String yy_error_string[] = {
    "Error: Internal error.\n",
    "Error: Unmatched input.\n"
  };
  private void yy_error (int code,boolean fatal) {
    java.lang.System.out.print(yy_error_string[code]);
    java.lang.System.out.flush();
    if (fatal) {
      throw new Error("Fatal Error.\n");
    }
  }
  private int[][] unpackFromString(int size1, int size2, String st) {
    int colonIndex = -1;
    String lengthString;
    int sequenceLength = 0;
    int sequenceInteger = 0;

    int commaIndex;
    String workString;

    int res[][] = new int[size1][size2];
    for (int i= 0; i < size1; i++) {
      for (int j= 0; j < size2; j++) {
        if (sequenceLength != 0) {
          res[i][j] = sequenceInteger;
          sequenceLength--;
          continue;
        }
        commaIndex = st.indexOf(',');
        workString = (commaIndex==-1) ? st :
          st.substring(0, commaIndex);
        st = st.substring(commaIndex+1);
        colonIndex = workString.indexOf(':');
        if (colonIndex == -1) {
          res[i][j]=Integer.parseInt(workString);
          continue;
        }
        lengthString =
          workString.substring(colonIndex+1);
        sequenceLength=Integer.parseInt(lengthString);
        workString=workString.substring(0,colonIndex);
        sequenceInteger=Integer.parseInt(workString);
        res[i][j] = sequenceInteger;
        sequenceLength--;
      }
    }
    return res;
  }
  private int yy_acpt[] = {
    /* 0 */ YY_NOT_ACCEPT,
    /* 1 */ YY_NO_ANCHOR,
    /* 2 */ YY_NO_ANCHOR,
    /* 3 */ YY_NO_ANCHOR,
    /* 4 */ YY_NO_ANCHOR,
    /* 5 */ YY_NO_ANCHOR,
    /* 6 */ YY_NO_ANCHOR,
    /* 7 */ YY_NO_ANCHOR,
    /* 8 */ YY_NO_ANCHOR,
    /* 9 */ YY_NO_ANCHOR,
    /* 10 */ YY_NO_ANCHOR,
    /* 11 */ YY_NO_ANCHOR,
    /* 12 */ YY_NO_ANCHOR,
    /* 13 */ YY_NO_ANCHOR,
    /* 14 */ YY_NO_ANCHOR,
    /* 15 */ YY_NO_ANCHOR,
    /* 16 */ YY_NO_ANCHOR,
    /* 17 */ YY_NO_ANCHOR,
    /* 18 */ YY_NO_ANCHOR,
    /* 19 */ YY_NO_ANCHOR,
    /* 20 */ YY_NO_ANCHOR,
    /* 21 */ YY_NO_ANCHOR,
    /* 22 */ YY_NO_ANCHOR,
    /* 23 */ YY_NO_ANCHOR,
    /* 24 */ YY_NO_ANCHOR,
    /* 25 */ YY_NO_ANCHOR,
    /* 26 */ YY_NO_ANCHOR,
    /* 27 */ YY_NO_ANCHOR,
    /* 28 */ YY_NO_ANCHOR,
    /* 29 */ YY_NO_ANCHOR,
    /* 30 */ YY_NO_ANCHOR,
    /* 31 */ YY_NO_ANCHOR,
    /* 32 */ YY_NO_ANCHOR,
    /* 33 */ YY_NO_ANCHOR,
    /* 34 */ YY_NO_ANCHOR,
    /* 35 */ YY_NO_ANCHOR,
    /* 36 */ YY_NO_ANCHOR,
    /* 37 */ YY_NO_ANCHOR,
    /* 38 */ YY_NO_ANCHOR,
    /* 39 */ YY_NO_ANCHOR,
    /* 40 */ YY_NO_ANCHOR,
    /* 41 */ YY_NO_ANCHOR,
    /* 42 */ YY_NO_ANCHOR,
    /* 43 */ YY_NO_ANCHOR,
    /* 44 */ YY_NO_ANCHOR,
    /* 45 */ YY_NO_ANCHOR,
    /* 46 */ YY_NO_ANCHOR,
    /* 47 */ YY_NO_ANCHOR,
    /* 48 */ YY_NO_ANCHOR,
    /* 49 */ YY_NO_ANCHOR,
    /* 50 */ YY_NO_ANCHOR,
    /* 51 */ YY_NO_ANCHOR,
    /* 52 */ YY_NO_ANCHOR,
    /* 53 */ YY_NO_ANCHOR,
    /* 54 */ YY_NOT_ACCEPT,
    /* 55 */ YY_NO_ANCHOR,
    /* 56 */ YY_NO_ANCHOR,
    /* 57 */ YY_NO_ANCHOR,
    /* 58 */ YY_NOT_ACCEPT,
    /* 59 */ YY_NO_ANCHOR,
    /* 60 */ YY_NO_ANCHOR,
    /* 61 */ YY_NOT_ACCEPT,
    /* 62 */ YY_NO_ANCHOR,
    /* 63 */ YY_NO_ANCHOR,
    /* 64 */ YY_NOT_ACCEPT,
    /* 65 */ YY_NO_ANCHOR,
    /* 66 */ YY_NO_ANCHOR,
    /* 67 */ YY_NOT_ACCEPT,
    /* 68 */ YY_NO_ANCHOR,
    /* 69 */ YY_NO_ANCHOR,
    /* 70 */ YY_NOT_ACCEPT,
    /* 71 */ YY_NO_ANCHOR,
    /* 72 */ YY_NOT_ACCEPT,
    /* 73 */ YY_NO_ANCHOR,
    /* 74 */ YY_NOT_ACCEPT,
    /* 75 */ YY_NO_ANCHOR,
    /* 76 */ YY_NOT_ACCEPT,
    /* 77 */ YY_NO_ANCHOR,
    /* 78 */ YY_NO_ANCHOR,
    /* 79 */ YY_NO_ANCHOR,
    /* 80 */ YY_NO_ANCHOR,
    /* 81 */ YY_NO_ANCHOR,
    /* 82 */ YY_NO_ANCHOR,
    /* 83 */ YY_NO_ANCHOR,
    /* 84 */ YY_NO_ANCHOR,
    /* 85 */ YY_NO_ANCHOR,
    /* 86 */ YY_NO_ANCHOR,
    /* 87 */ YY_NO_ANCHOR,
    /* 88 */ YY_NO_ANCHOR,
    /* 89 */ YY_NO_ANCHOR,
    /* 90 */ YY_NO_ANCHOR,
    /* 91 */ YY_NO_ANCHOR,
    /* 92 */ YY_NO_ANCHOR,
    /* 93 */ YY_NO_ANCHOR,
    /* 94 */ YY_NO_ANCHOR,
    /* 95 */ YY_NO_ANCHOR,
    /* 96 */ YY_NO_ANCHOR,
    /* 97 */ YY_NO_ANCHOR,
    /* 98 */ YY_NO_ANCHOR,
    /* 99 */ YY_NO_ANCHOR,
    /* 100 */ YY_NO_ANCHOR,
    /* 101 */ YY_NO_ANCHOR,
    /* 102 */ YY_NO_ANCHOR,
    /* 103 */ YY_NO_ANCHOR,
    /* 104 */ YY_NO_ANCHOR,
    /* 105 */ YY_NO_ANCHOR,
    /* 106 */ YY_NO_ANCHOR,
    /* 107 */ YY_NO_ANCHOR,
    /* 108 */ YY_NO_ANCHOR,
    /* 109 */ YY_NO_ANCHOR,
    /* 110 */ YY_NO_ANCHOR,
    /* 111 */ YY_NO_ANCHOR,
    /* 112 */ YY_NO_ANCHOR,
    /* 113 */ YY_NO_ANCHOR,
    /* 114 */ YY_NO_ANCHOR,
    /* 115 */ YY_NO_ANCHOR,
    /* 116 */ YY_NO_ANCHOR,
    /* 117 */ YY_NO_ANCHOR,
    /* 118 */ YY_NO_ANCHOR,
    /* 119 */ YY_NO_ANCHOR,
    /* 120 */ YY_NO_ANCHOR,
    /* 121 */ YY_NO_ANCHOR,
    /* 122 */ YY_NO_ANCHOR,
    /* 123 */ YY_NO_ANCHOR,
    /* 124 */ YY_NO_ANCHOR,
    /* 125 */ YY_NO_ANCHOR,
    /* 126 */ YY_NO_ANCHOR,
    /* 127 */ YY_NO_ANCHOR,
    /* 128 */ YY_NO_ANCHOR,
    /* 129 */ YY_NO_ANCHOR,
    /* 130 */ YY_NO_ANCHOR,
    /* 131 */ YY_NO_ANCHOR,
    /* 132 */ YY_NO_ANCHOR,
    /* 133 */ YY_NO_ANCHOR,
    /* 134 */ YY_NO_ANCHOR,
    /* 135 */ YY_NO_ANCHOR,
    /* 136 */ YY_NO_ANCHOR,
    /* 137 */ YY_NO_ANCHOR,
    /* 138 */ YY_NO_ANCHOR,
    /* 139 */ YY_NO_ANCHOR
  };
  private int yy_cmap[] = unpackFromString(1,65538,
"44:9,48:2,44,48:2,44:18,49,44,47,44:3,46,39,30,32,35,33,25,34,38,36,40:10,2" +
"4,44,27,26,28,44:2,1,19,5,3,6,18,15,13,8,41:2,7,9,2,20,16,41,11,4,12,14,41," +
"22,23,17,41,43,44,45,44,42,44,1,19,5,3,21,18,15,13,8,41:2,7,9,2,10,16,41,11" +
",4,12,14,41,22,23,17,41,29,37,31,44:65410,0:2")[0];

  private int yy_rmap[] = unpackFromString(1,140,
"0,1,2,1:3,3,4,1:8,5,6,7,1,8:3,1:4,9,1:3,8:6,1,8:14,1:2,10,11,10,12,13,14,1," +
"15,16,15,17,18,19,20,21,20,12,22,13,23,24,25,26,27,28,29,30,31,32,33,34,35," +
"36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60," +
"61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,8,83,84,8" +
"5,86,87,88")[0];

  private int yy_nxt[][] = unpackFromString(89,50,
"1,2,55,120,128,130,132,133:2,134,59,133,135,133:3,136,133,137,133,62,65,138" +
",139,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,56,18,133,60,63,60:2,66,69,19:2," +
"-1:51,133,68,133,20,133:19,-1:16,133:3,-1:33,23,-1,24,-1:47,25,-1:60,26,-1:" +
"52,27,-1:15,58,-1:14,58,-1:16,119,-1,18,-1:10,133:23,-1:16,133:3,-1:13,58,-" +
"1:14,58,-1:18,27,-1:10,54:38,28,54:8,-1,54,-1,133:9,71,133:9,71,133:3,-1:16" +
",133:3,-1:47,57,-1:42,70:2,-1:5,57,-1:10,133,21,133:21,-1:16,133:3,-1:8,61:" +
"44,29,61:2,-1,61,-1,133,21,133:8,22,133:12,-1:16,133:3,-1:8,64:44,37,64:2,-" +
"1,64,-1,133,80,133:4,122,133,81,133,22,133:12,-1:16,133:3,-1:50,64,-1:7,67:" +
"46,30,-1,67,-1,133:2,31,133:20,-1:16,133:3,-1:8,133,32,133:9,33,133:11,-1:1" +
"6,133:3,-1:8,133:8,129,133:14,-1:16,133:3,-1:7,1,2,55,120,128,130,132,133:2" +
",134,59,133,135,133:3,136,133,137,133,62,65,138,139,3,4,5,6,7,8,9,10,11,12," +
"13,14,15,16,17,52,18,133,60,63,60:2,66,69,19:2,-1,133:7,123,133:15,-1:16,13" +
"3:3,-1:7,1,2,55,120,128,130,132,133:2,134,59,133,135,133:3,136,133,137,133," +
"62,65,138,139,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,53,18,133,60,63,60:2,66" +
",69,19:2,-1,133:6,131,133:4,34,133:11,-1:16,133:3,-1:8,133:3,86,133:19,-1:1" +
"6,133:3,-1:8,133:6,87,133:16,-1:16,133:3,-1:8,133:2,35,133:20,-1:16,133:3,-" +
"1:8,133:15,126,133:7,-1:16,133:3,-1:8,133:5,90,133:14,90,133:2,-1:16,133:3," +
"-1:8,133:9,91,133:9,91,133:3,-1:16,133:3,-1:8,133:11,93,133:11,-1:16,133:3," +
"-1:8,133:10,36,133:12,-1:16,133:3,-1:8,133:5,38,133:14,38,133:2,-1:16,133:3" +
",-1:8,133:6,39,133:16,-1:16,133:3,-1:8,133:5,40,133:14,40,133:2,-1:16,133:3" +
",-1:8,133:18,99,133:4,-1:16,133:3,-1:8,133,41,133:21,-1:16,133:3,-1:8,133:1" +
"5,127,133:7,-1:16,133:3,-1:8,133:8,42,133:14,-1:16,133:3,-1:8,133:12,43,133" +
":10,-1:16,133:3,-1:8,133,44,133:8,100,133:12,-1:16,133:3,-1:8,133,101,133:2" +
"1,-1:16,133:3,-1:8,133:6,102,133:16,-1:16,133:3,-1:8,133:4,103,133:18,-1:16" +
",133:3,-1:8,133:16,45,133:6,-1:16,133:3,-1:8,133:5,104,133:14,104,133:2,-1:" +
"16,133:3,-1:8,133:5,46,133:14,46,133:2,-1:16,133:3,-1:8,133:3,106,133:19,-1" +
":16,133:3,-1:8,133:11,107,133:11,-1:16,133:3,-1:8,133:11,47,133:11,-1:16,13" +
"3:3,-1:8,133:10,48,133:12,-1:16,133:3,-1:8,133:10,108,133:12,-1:16,133:3,-1" +
":8,133:7,109,133:15,-1:16,133:3,-1:8,133:12,110,133:10,-1:16,133:3,-1:8,133" +
":11,111,133:11,-1:16,133:3,-1:8,133:9,112,133:9,112,133:3,-1:16,133:3,-1:8," +
"133:10,113,133:12,-1:16,133:3,-1:8,133:7,114,133:15,-1:16,133:3,-1:8,133,49" +
",133:21,-1:16,133:3,-1:8,133:9,115,133:9,115,133:3,-1:16,133:3,-1:8,133:5,1" +
"16,133:14,116,133:2,-1:16,133:3,-1:8,133:13,117,133:9,-1:16,133:3,-1:8,133:" +
"3,50,133:19,-1:16,133:3,-1:8,133:14,118,133:8,-1:16,133:3,-1:8,133:12,51,13" +
"3:10,-1:16,133:3,-1:13,72,-1:14,72,-1:18,119,-1:10,133:7,73,133:2,75,133:12" +
",-1:16,133:3,-1:8,133:8,89,133:14,-1:16,133:3,-1:8,133:3,88,133:19,-1:16,13" +
"3:3,-1:8,133:6,96,133:16,-1:16,133:3,-1:8,133:5,94,133:14,94,133:2,-1:16,13" +
"3:3,-1:8,133:9,92,133:9,92,133:3,-1:16,133:3,-1:8,133:11,98,133:11,-1:16,13" +
"3:3,-1:8,133:5,105,133:14,105,133:2,-1:16,133:3,-1:8,133:5,77,133:14,77,133" +
":2,-1:16,133:3,-1:8,133:5,95,133:14,95,133:2,-1:16,133:3,-1:8,78,133:4,79,1" +
"33:14,79,133:2,-1:16,133:3,-1:8,133:5,97,133:14,97,133:2,-1:16,133:3,-1:8,1" +
"33,80,133:4,122,133,81,133:14,-1:16,133:3,-1:8,133:5,121,133:14,121,133:2,-" +
"1:16,133:3,-1:8,133:12,82,133:10,-1:16,133:3,-1:8,133:10,83,133:12,-1:16,13" +
"3:3,-1:8,133:10,125,133:12,-1:16,133:3,-1:8,133:7,84,133:4,124,133:10,-1:16" +
",133:3,-1:8,133:9,85,133:9,85,133:3,-1:16,133:3,-1:7");

  public java_cup.runtime.Symbol next_token ()
    throws java.io.IOException {
    int yy_lookahead;
    int yy_anchor = YY_NO_ANCHOR;
    int yy_state = yy_state_dtrans[yy_lexical_state];
    int yy_next_state = YY_NO_STATE;
    int yy_last_accept_state = YY_NO_STATE;
    boolean yy_initial = true;
    int yy_this_accept;

    yy_mark_start();
    yy_this_accept = yy_acpt[yy_state];
    if (YY_NOT_ACCEPT != yy_this_accept) {
      yy_last_accept_state = yy_state;
      yy_mark_end();
    }
    while (true) {
      if (yy_initial && yy_at_bol) yy_lookahead = YY_BOL;
      else yy_lookahead = yy_advance();
      yy_next_state = YY_F;
      yy_next_state = yy_nxt[yy_rmap[yy_state]][yy_cmap[yy_lookahead]];
      if (YY_EOF == yy_lookahead && true == yy_initial) {

  return new Symbol(sym.EOF, null);
      }
      if (YY_F != yy_next_state) {
        yy_state = yy_next_state;
        yy_initial = false;
        yy_this_accept = yy_acpt[yy_state];
        if (YY_NOT_ACCEPT != yy_this_accept) {
          yy_last_accept_state = yy_state;
          yy_mark_end();
        }
      }
      else {
        if (YY_NO_STATE == yy_last_accept_state) {
          throw (new Error("Lexical Error: Unmatched Input."));
        }
        else {
          yy_anchor = yy_acpt[yy_last_accept_state];
          if (0 != (YY_END & yy_anchor)) {
            yy_move_end();
          }
          yy_to_mark();
          switch (yy_last_accept_state) {
          case 1:
           
          case -2:
            break;
          case 2:
            { return new Symbol(sym.ID, yytext()); }
          case -3:
            break;
          case 3:
            { return new Symbol(sym.COLON, ":"); }
          case -4:
            break;
          case 4:
            { return new Symbol(sym.COMMA, ","); }
          case -5:
            break;
          case 5:
            { return new Symbol(sym.EQ, "="); }
          case -6:
            break;
          case 6:
            { return new Symbol(sym.LT, "<"); }
          case -7:
            break;
          case 7:
            { return new Symbol(sym.GT, ">"); }
          case -8:
            break;
          case 8:
            { return new Symbol(sym.LBRACE, "{"); }
          case -9:
            break;
          case 9:
            { return new Symbol(sym.LPAREN, "("); }
          case -10:
            break;
          case 10:
            { return new Symbol(sym.RBRACE, "}"); }
          case -11:
            break;
          case 11:
            { return new Symbol(sym.RPAREN, ")"); }
          case -12:
            break;
          case 12:
            { return new Symbol(sym.PLUS, "+"); }
          case -13:
            break;
          case 13:
            { return new Symbol(sym.MINUS, "-"); }
          case -14:
            break;
          case 14:
            { return new Symbol(sym.ASTERISK, "*"); }
          case -15:
            break;
          case 15:
            { return new Symbol(sym.SOLIDUS, "/"); }
          case -16:
            break;
          case 16:
            { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); }
          case -17:
            break;
          case 17:
            { return new Symbol(sym.DOT, "."); }
          case -18:
            break;
          case 18:
            { Double d = new Double(yytext()); return new Symbol(sym.NUMBER, d); }
          case -19:
            break;
          case 19:
            { /* ignore white space. */ }
          case -20:
            break;
          case 20:
            { yybegin(AFTER_AS1); return new Symbol(sym.AS, "AS"); }
          case -21:
            break;
          case 21:
            { return new Symbol(sym.ON, "ON"); }
          case -22:
            break;
          case 22:
            { return new Symbol(sym.OR, "OR"); }
          case -23:
            break;
          case 23:
            { return new Symbol(sym.LE, "<="); }
          case -24:
            break;
          case 24:
            { return new Symbol(sym.NE, "<>"); }
          case -25:
            break;
          case 25:
            { return new Symbol(sym.GE, ">="); }
          case -26:
            break;
          case 26:
            { return new Symbol(sym.CONCAT, "||"); }
          case -27:
            break;
          case 27:
            { Double d = new Double(yytext()); return new Symbol(sym.NUMBER, d); }
          case -28:
            break;
          case 28:
            { return new Symbol(sym.STRING, yytext()); }
          case -29:
            break;
          case 29:
            { return new Symbol(sym.QUOTED_ID, yytext()); }
          case -30:
            break;
          case 30:
            { return new Symbol(sym.STRING, yytext()); }
          case -31:
            break;
          case 31:
            { return new Symbol(sym.AND, "AND"); }
          case -32:
            break;
          case 32:
            { return new Symbol(sym.NON, "NON"); }
          case -33:
            break;
          case 33:
            { return new Symbol(sym.NOT, "NOT"); }
          case -34:
            break;
          case 34:
            { return new Symbol(sym.SET, "SET"); }
          case -35:
            break;
          case 35:
            { return new Symbol(sym.END, "END"); }
          case -36:
            break;
          case 36:
            { return new Symbol(sym.XOR, "XOR"); }
          case -37:
            break;
          case 37:
            { return new Symbol(sym.AMP_QUOTED_ID, yytext()); }
          case -38:
            break;
          case 38:
            { return new Symbol(sym.CASE, "CASE"); }
          case -39:
            break;
          case 39:
            { return new Symbol(sym.CELL, "CELL"); }
          case -40:
            break;
          case 40:
            { return new Symbol(sym.ELSE, "ELSE"); }
          case -41:
            break;
          case 41:
            { return new Symbol(sym.THEN, "THEN"); }
          case -42:
            break;
          case 42:
            { return new Symbol(sym.FROM, "FROM"); }
          case -43:
            break;
          case 43:
            { return new Symbol(sym.WITH, "WITH"); }
          case -44:
            break;
          case 44:
            { return new Symbol(sym.WHEN, "WHEN"); }
          case -45:
            break;
          case 45:
            { return new Symbol(sym.EMPTY, "EMPTY"); }
          case -46:
            break;
          case 46:
            { return new Symbol(sym.WHERE, "WHERE"); }
          case -47:
            break;
          case 47:
            { return new Symbol(sym.SELECT, "SELECT"); }
          case -48:
            break;
          case 48:
            { return new Symbol(sym.MEMBER, "MEMBER"); }
          case -49:
            break;
          case 49:
            { return new Symbol(sym.DIMENSION, "DIMENSION"); }
          case -50:
            break;
          case 50:
            { return new Symbol(sym.PROPERTIES, "PROPERTIES"); }
          case -51:
            break;
          case 51:
            { return new Symbol(sym.DRILLTHROUGH, "DRILLTHROUGH"); }
          case -52:
            break;
          case 52:
            {yybegin(AFTER_AS2); return new Symbol(sym.QUOTE, "'"); }
          case -53:
            break;
          case 53:
            {yybegin(YYINITIAL); return new Symbol(sym.QUOTE, "'"); }
          case -54:
            break;
          case 55:
            { return new Symbol(sym.ID, yytext()); }
          case -55:
            break;
          case 56:
            { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); }
          case -56:
            break;
          case 57:
            { Double d = new Double(yytext()); return new Symbol(sym.NUMBER, d); }
          case -57:
            break;
          case 59:
            { return new Symbol(sym.ID, yytext()); }
          case -58:
            break;
          case 60:
            { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); }
          case -59:
            break;
          case 62:
            { return new Symbol(sym.ID, yytext()); }
          case -60:
            break;
          case 63:
            { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); }
          case -61:
            break;
          case 65:
            { return new Symbol(sym.ID, yytext()); }
          case -62:
            break;
          case 66:
            { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); }
          case -63:
            break;
          case 68:
            { return new Symbol(sym.ID, yytext()); }
          case -64:
            break;
          case 69:
            { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); }
          case -65:
            break;
          case 71:
            { return new Symbol(sym.ID, yytext()); }
          case -66:
            break;
          case 73:
            { return new Symbol(sym.ID, yytext()); }
          case -67:
            break;
          case 75:
            { return new Symbol(sym.ID, yytext()); }
          case -68:
            break;
          case 77:
            { return new Symbol(sym.ID, yytext()); }
          case -69:
            break;
          case 78:
            { return new Symbol(sym.ID, yytext()); }
          case -70:
            break;
          case 79:
            { return new Symbol(sym.ID, yytext()); }
          case -71:
            break;
          case 80:
            { return new Symbol(sym.ID, yytext()); }
          case -72:
            break;
          case 81:
            { return new Symbol(sym.ID, yytext()); }
          case -73:
            break;
          case 82:
            { return new Symbol(sym.ID, yytext()); }
          case -74:
            break;
          case 83:
            { return new Symbol(sym.ID, yytext()); }
          case -75:
            break;
          case 84:
            { return new Symbol(sym.ID, yytext()); }
          case -76:
            break;
          case 85:
            { return new Symbol(sym.ID, yytext()); }
          case -77:
            break;
          case 86:
            { return new Symbol(sym.ID, yytext()); }
          case -78:
            break;
          case 87:
            { return new Symbol(sym.ID, yytext()); }
          case -79:
            break;
          case 88:
            { return new Symbol(sym.ID, yytext()); }
          case -80:
            break;
          case 89:
            { return new Symbol(sym.ID, yytext()); }
          case -81:
            break;
          case 90:
            { return new Symbol(sym.ID, yytext()); }
          case -82:
            break;
          case 91:
            { return new Symbol(sym.ID, yytext()); }
          case -83:
            break;
          case 92:
            { return new Symbol(sym.ID, yytext()); }
          case -84:
            break;
          case 93:
            { return new Symbol(sym.ID, yytext()); }
          case -85:
            break;
          case 94:
            { return new Symbol(sym.ID, yytext()); }
          case -86:
            break;
          case 95:
            { return new Symbol(sym.ID, yytext()); }
          case -87:
            break;
          case 96:
            { return new Symbol(sym.ID, yytext()); }
          case -88:
            break;
          case 97:
            { return new Symbol(sym.ID, yytext()); }
          case -89:
            break;
          case 98:
            { return new Symbol(sym.ID, yytext()); }
          case -90:
            break;
          case 99:
            { return new Symbol(sym.ID, yytext()); }
          case -91:
            break;
          case 100:
            { return new Symbol(sym.ID, yytext()); }
          case -92:
            break;
          case 101:
            { return new Symbol(sym.ID, yytext()); }
          case -93:
            break;
          case 102:
            { return new Symbol(sym.ID, yytext()); }
          case -94:
            break;
          case 103:
            { return new Symbol(sym.ID, yytext()); }
          case -95:
            break;
          case 104:
            { return new Symbol(sym.ID, yytext()); }
          case -96:
            break;
          case 105:
            { return new Symbol(sym.ID, yytext()); }
          case -97:
            break;
          case 106:
            { return new Symbol(sym.ID, yytext()); }
          case -98:
            break;
          case 107:
            { return new Symbol(sym.ID, yytext()); }
          case -99:
            break;
          case 108:
            { return new Symbol(sym.ID, yytext()); }
          case -100:
            break;
          case 109:
            { return new Symbol(sym.ID, yytext()); }
          case -101:
            break;
          case 110:
            { return new Symbol(sym.ID, yytext()); }
          case -102:
            break;
          case 111:
            { return new Symbol(sym.ID, yytext()); }
          case -103:
            break;
          case 112:
            { return new Symbol(sym.ID, yytext()); }
          case -104:
            break;
          case 113:
            { return new Symbol(sym.ID, yytext()); }
          case -105:
            break;
          case 114:
            { return new Symbol(sym.ID, yytext()); }
          case -106:
            break;
          case 115:
            { return new Symbol(sym.ID, yytext()); }
          case -107:
            break;
          case 116:
            { return new Symbol(sym.ID, yytext()); }
          case -108:
            break;
          case 117:
            { return new Symbol(sym.ID, yytext()); }
          case -109:
            break;
          case 118:
            { return new Symbol(sym.ID, yytext()); }
          case -110:
            break;
          case 119:
            { Double d = new Double(yytext()); return new Symbol(sym.NUMBER, d); }
          case -111:
            break;
          case 120:
            { return new Symbol(sym.ID, yytext()); }
          case -112:
            break;
          case 121:
            { return new Symbol(sym.ID, yytext()); }
          case -113:
            break;
          case 122:
            { return new Symbol(sym.ID, yytext()); }
          case -114:
            break;
          case 123:
            { return new Symbol(sym.ID, yytext()); }
          case -115:
            break;
          case 124:
            { return new Symbol(sym.ID, yytext()); }
          case -116:
            break;
          case 125:
            { return new Symbol(sym.ID, yytext()); }
          case -117:
            break;
          case 126:
            { return new Symbol(sym.ID, yytext()); }
          case -118:
            break;
          case 127:
            { return new Symbol(sym.ID, yytext()); }
          case -119:
            break;
          case 128:
            { return new Symbol(sym.ID, yytext()); }
          case -120:
            break;
          case 129:
            { return new Symbol(sym.ID, yytext()); }
          case -121:
            break;
          case 130:
            { return new Symbol(sym.ID, yytext()); }
          case -122:
            break;
          case 131:
            { return new Symbol(sym.ID, yytext()); }
          case -123:
            break;
          case 132:
            { return new Symbol(sym.ID, yytext()); }
          case -124:
            break;
          case 133:
            { return new Symbol(sym.ID, yytext()); }
          case -125:
            break;
          case 134:
            { return new Symbol(sym.ID, yytext()); }
          case -126:
            break;
          case 135:
            { return new Symbol(sym.ID, yytext()); }
          case -127:
            break;
          case 136:
            { return new Symbol(sym.ID, yytext()); }
          case -128:
            break;
          case 137:
            { return new Symbol(sym.ID, yytext()); }
          case -129:
            break;
          case 138:
            { return new Symbol(sym.ID, yytext()); }
          case -130:
            break;
          case 139:
            { return new Symbol(sym.ID, yytext()); }
          case -131:
            break;
          default:
            yy_error(YY_E_INTERNAL,false);
          case -1:
          }
          yy_initial = true;
          yy_state = yy_state_dtrans[yy_lexical_state];
          yy_next_state = YY_NO_STATE;
          yy_last_accept_state = YY_NO_STATE;
          yy_mark_start();
          yy_this_accept = yy_acpt[yy_state];
          if (YY_NOT_ACCEPT != yy_this_accept) {
            yy_last_accept_state = yy_state;
            yy_mark_end();
          }
        }
      }
    }
  }
}
TOP

Related Classes of rex.olap.mdxparse.Yylex

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.